{{define "infoCollection/report.html"}}
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>脑卒中风险评估报告</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        {{template "include/styleRefer.html"}}
        <link rel="stylesheet" href="/res/bower_components/bootstrap/dist/css/bootstrap.min.css" media="print">
        {{template "include/scriptRefer.html"}}


        <script src="/res/js/reportEvaluation.js"></script>
        <style>
            .yichang {
                color: #ff0000;
                font-weight: bold;
            }
        </style>
    </head>
    <body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        {{template "mainHeader.html"}}
        {{template "nav.html"}}
        <div class="content-wrapper">
            {{template "contentHeader.html"}}
            <section class="content">
                <!-- 报告内容 -->
                <style>
                    .content-header {
                        display: none;
                    }

                    .container .row {
                        margin-top: 10px;
                    }
                </style>
                <div class="reportC" style="padding: 10px 50px;background: #fff;">
                    <h3 class="text-center" style="margin-bottom: 50px;">脑卒中风险评估报告</h3>
                    <div class="container" style="width: 100%;margin-bottom: 60px;">
                        <div class="row" style="margin-right: -15px;margin-left: -15px;">
                            <div class="col-sm-3"
                                 style="width: 20%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                姓名：<label class="r_name">-</label>
                            </div>
                            <!--                         <div class="col-sm-4" style="width: 33.33333333%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        性别：<label class="r_sex">-</label>
                                                    </div>  -->
                            <div class="col-sm-3"
                                 style="width: 20%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                年龄：<label class="r_age">-</label>
                            </div>
                            <div class="col-sm-3"
                                 style="width: 20%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                身份证号：<label class="r_card">-</label>
                            </div>
                            <div class="col-sm-3" style="width: 40%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                户籍地址：<label class="r_address">-</label>
                            </div>
                        </div>
                        <div class="row" style="margin-right: -15px;margin-left: -15px;">
                            <div class="col-sm-4"
                                 style="width: 33.33333333%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                筛查单位：<label class="r_Organ">-</label>
                            </div>
                            <div class="col-sm-4"
                                 style="width: 33.33333333%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                筛查年度：<label class="r_year">-</label>
                            </div>
                            <div class="col-sm-4"
                                 style="width: 33.33333333%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                筛查时间：<label class="r_time">-</label>
                            </div>

                        </div>
                        <div class="row" style="margin-right: -15px;margin-left: -15px;">
                            <div class="col-sm-12">
                                1、本次筛查结果：<label class="r_result" style="color: red;display: none;">-</label>
                                <div class="container" style="margin: 0px 30px; width: 100%;">
                                    <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                        <div class="col-sm-12">
                                            本次筛查内容：
                                            <div class="container" style="width: 100%;">
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        项目
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        结果
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        单位
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        参考值
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        身高
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_height">-
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        cm
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        体重
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_weight">-
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        kg
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        BMI
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_BMI">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        kg/m2
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        18.5~23.9
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        收缩压
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_firstSBP">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmHg
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        90~140
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        舒张压
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_firstDSP">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmHg
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        60~90
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        空腹血糖
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuetang_kongfu">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        3.9～6.1
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        餐后2小时血糖
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuetang_canhou">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        3.9～7.8
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        糖化血红蛋白
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuetang_thxhdb">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        HbA1c
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        4%～6%
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        甘油三酯
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuezhi_ganyousanzhi">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        0.56～1.70
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        总胆固醇
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuezhi_danguchun">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        <5.2
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        低密度脂蛋白胆固醇
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuezhi_dimidu">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        ≤3.12
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        高密度脂蛋白胆固醇
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xuezhi_gaomidu">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        mmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        1.03～2.07
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        同型半胱氨酸
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_shiyanshi_hcy">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        μmol/L
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        5~15
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        心电图检查
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_ecg">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_is_zhengchang">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        颈部血管超声检查结果
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_cvus_is_zhengchang">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_neimo">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        内膜增厚
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_neimo_IMT_houdu">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_bankuai_shuliang">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        斑块数量
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_bankuai_shuliang">
                                                    </div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"></div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_bankuai_xingtai">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        斑块形态
                                                    </div>
                                                    <div class="col-sm-9"
                                                         style="float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_bankuai_xingtai">
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_bankuai_kuiyang">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        斑块溃疡
                                                    </div>
                                                    <div class="col-sm-9"
                                                         style="float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_bankuai_kuiyang">
                                                    </div>
                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_bankuai_huisheng">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        斑块回声
                                                    </div>
                                                    <div class="col-sm-9"
                                                         style="float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_bankuai_huisheng">
                                                    </div>

                                                </div>
                                                <div class="row" style="margin-right: -15px;margin-left: -15px;"
                                                     id="div_xzl">
                                                    <div class="col-sm-3"
                                                         style="width: 25%;float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;">
                                                        狭窄率
                                                    </div>
                                                    <div class="col-sm-9"
                                                         style="float: left;position: relative;min-height: 1px;padding-right: 15px;padding-left: 15px;"
                                                         id="r_xiazhai_xiazhailv">
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-12" style="margin: 10px 0px 20px;">
                                            主要危险因素：
                                            <div class="container" style="width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12" id="r_risk"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="_2" style="display: none;">
                            <div class="col-sm-12">
                                2、脑卒中风险评级
                                <div class="container" style="margin: 0px 30px;width: 100%;">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            您本次调查属于脑卒中 <span id="r_RiskLevel"
                                                             style="color: red;font-weight: 700;"></span> 人群
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="_3" style="display: none;">
                            <div class="col-sm-12">
                                3、针对您的主要危险因素我们给予如下建议
                                <div class="container" id="jiankangzhidao"
                                     style="margin: 0px 10px;display: none; width: 100%;">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            （1）健康指导
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-12" style="padding-left: 50px;line-height: 24px;">
                                            合理膳食： 建议低钠摄入量(盐摄入量≤5g/d），每日总脂肪摄入量应< 总热量的30%，饱和脂肪酸<10%;
                                            每日摄入新鲜蔬菜400-500g,水果100g,肉类50g,鱼虾类50g,蛋类每周3-4个;奶类每日250g,食油每日20-25g;均衡饮食，在总能量固定的基础上食物多样化；
                                            <br>
                                            改善生活习惯： 控制体重；心理平衡；戒酒；
                                            <br>
                                            定期检查： 血压；血糖；血脂；
                                            <br>
                                            如果您出现了以下症状——请立即拨打120！
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-12" style="padding-left: 30px;line-height: 24px;">
                                            <ul>
                                                <li>突然的颜面部、肢体的麻木或无力，尤其是在身体的一侧</li>
                                                <li>突然说不出物体的名称，说话或理解困难</li>
                                                <li>突然出现嗜睡状态，即患者昏昏沉沉，总想睡觉</li>
                                                <li>突然行走困难，头晕，伴有恶心、呕吐，肢体失去平衡或不协调</li>
                                                <li>突然单眼或双眼视物不清</li>
                                                <li>突然的不明原因的没有经历过的严重头痛，可有恶心呕吐</li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                                <div class="container" id="yishengzhidao"
                                     style="margin: 0px 10px;display: none;width: 100%;">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            （2）用药、手术及其他建议
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-12" style="line-height: 24px;padding-right: 80px;">
                                            <div class="container" id="gaoxueya" style="display: none;width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        高血压：
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12" id="gaoxueya_" style="margin-left: 20px;">

                                                    </div>
                                                </div>
                                            </div>
                                            <div class="container" id="tangniaobing" style="display: none;width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        糖尿病：
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12" id="tangniaobing_"
                                                         style="margin-left: 20px;">

                                                    </div>
                                                </div>
                                            </div>
                                            <div class="container" id="xuezhi" style="display: none;width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        血脂：
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12" id="xuezhi_" style="margin-left: 20px;">

                                                    </div>
                                                </div>
                                            </div>
                                            <div class="container" id="hcy_result" style="display: none;width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        同型半胱氨酸：
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12" id="hcy_result_" style="margin-left: 20px;">

                                                    </div>
                                                </div>
                                            </div>
                                            <div class="container" id="BMI" style="display: none;width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        BMI：
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12" id="BMI_" style="margin-left: 20px;">

                                                    </div>
                                                </div>
                                            </div>
                                            <div class="container" id="CVUS" style="display: none;width: 100%;">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        颈动脉斑块：
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12" id="CVUS_" style="margin-left: 20px;">

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <section>
                <div class="container" style="width: 100%;">
                    <div class="row">
                        <div class="col-sm-12" style="text-align: center;margin: 30px 0px 60px;">
                            <button type="button" id="printReport" class="btn btn-info">打印报告</button>
                            <button type="button" id="exportReport" class="btn btn-info">导出报告</button>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
    <script src="/res/js/print.js"></script>
    <script>
        $(function () {
            $("#printReport").click(function () {
                Print('.content', {
                    onStart: function () {
                        console.log('onStart', new Date())
                    },
                    onEnd: function () {
                        console.log('onEnd', new Date())
                    }
                })
            })

            $("#exportReport").click(function () {
                let screenId ={{.screenId}};
                //alert(screenId)
                window.location.href="/infoCollection/toSaveReport/"+screenId;
            })

            let organs ={{.organs}};
            //----------------------------------------初始化
            let role ={{.role}};
            if (role == "1" || role == "2") {
                $("#li_CVUS").show();
                $("#li_inspection").show();
            }
            //----------------------------------------初始化

            //----------------------------------------更新
            let screenId ={{.screenId}};
            $("#screenId").val(screenId);
            let year ={{.year}};
            let currentYear ={{.currentYear}}
            var reportResult = '';
            if (screenId && screenId != null) {1
                ajaxLoading("正在获取居民档案数据......");
                let p = {
                    id: screenId
                };
                if (year && year != "") {
                    p.year = year;
                    $(".r_year").text(year);
                } else {
                    $(".r_year").text(currentYear);
                }


                $.post("/infoCollection/getById", p, function (resp) {
                    ajaxLoadEnd();
                    if (resp.data.baseInfo) {
                        $(".r_name").text(resp.data.baseInfo.userName);
                        $(".r_age").text(resp.data.baseInfo.age == undefined ? "" : resp.data.baseInfo.age + " 岁");
                        $(".r_card").text(resp.data.baseInfo.idCard);
                        $(".r_sex").text(resp.data.baseInfo.userSex == undefined ? "" : resp.data.baseInfo.userSex);
                        $(".r_Organ").text(resp.data.createOrganName);
                        $(".r_time").text(resp.data.baseInfo.screenDate);
                        $(".r_address").text(resp.data.baseInfo.address);
                    }
                    if (resp.data.physicalCheckup) {
                        var gaoxueya_1 = resp.data.physicalCheckup.tigejiancha_xueya_firstSBP;
                        var dixueya_1 = resp.data.physicalCheckup.tigejiancha_xueya_firstDSP;
                        var gaoxueya_2 = resp.data.physicalCheckup.tigejiancha_xueya_secondSBP;
                        var dixueya_2 = resp.data.physicalCheckup.tigejiancha_xueya_secondDSP;
                        $("#r_height").text(resp.data.physicalCheckup.tigejiancha_height);
                        $("#r_weight").text(resp.data.physicalCheckup.tigejiancha_weight);
                        $("#r_BMI").append(displayVal(resp.data.physicalCheckup.tigejiancha_bmi, 18.5, 23.9));

                        gaoxueya_1 = parseInt(gaoxueya_1 == "" ? "0" : gaoxueya_1);
                        gaoxueya_2 = parseInt(gaoxueya_2 == "" ? "0" : gaoxueya_2);

                        dixueya_1 = parseInt(dixueya_1 == "" ? "0" : dixueya_1);
                        dixueya_2 = parseInt(dixueya_2 == "" ? "0" : dixueya_2);

                        //$("#r_firstSBP").text(gaoxueya_1 > gaoxueya_2 ? gaoxueya_1 : gaoxueya_2);
                        $("#r_firstSBP").append(displayVal(gaoxueya_1 > gaoxueya_2 ? gaoxueya_1 : gaoxueya_2,90,140));
                        //$("#r_firstDSP").text(dixueya_1 > dixueya_2 ? dixueya_1 : dixueya_2);
                        $("#r_firstDSP").append(displayVal(dixueya_1 > dixueya_2 ? dixueya_1 : dixueya_2,60,90));
                        var gxy_result = "";
                        let gxyResult = gxyCheck(gaoxueya_1, dixueya_1, gaoxueya_2, dixueya_2);
                        switch (gxyResult) {
                            case 1:
                                gxy_result = reportMap["高血压"]["1"];
                                break;
                            case 2:
                                gxy_result = reportMap["高血压"]["2"];
                                break;
                            case 3:
                                gxy_result = reportMap["高血压"]["3"];
                                break;
                            case 0:
                                if (resp.data.pastMedicalHistory) {
                                    var gaoxueya_ = resp.data.pastMedicalHistory.gaoxueya;
                                    if (gaoxueya_ == "有") {
                                        gxy_result = reportMap["高血压"]["4"];
                                        gxy_result = gxy_result.replace(/G/, $("#r_firstSBP").text()).replace(/D/, $("#r_firstDSP").text());
                                    }
                                }
                                break;
                        }
                        if (gxy_result != "") {
                            $("#gaoxueya_").html(gxy_result);
                            $("#gaoxueya").show();
                        }
                        var tigejiancha_bmi = resp.data.physicalCheckup.tigejiancha_bmi
                        var BMI_result = '';
                        if (tigejiancha_bmi > 28) {
                            BMI_result = reportMap["BMI"]["1"]
                        }
                        if (BMI_result != "") {
                            let shengao = resp.data.physicalCheckup.tigejiancha_height / 100;
                            //console.log("身高:",shengao,"建议体重:",toDecimal(shengao * 23.9));
                            BMI_result = BMI_result.replace(/TZ/, toDecimal(shengao * shengao * 23.9));
                            $("#BMI_").html(BMI_result);
                            $("#BMI").show();
                        }
                    }
                    if (resp.data.labExamination) {
                        //$("#r_xuetang_kongfu").text(resp.data.labExamination.xuetang_kongfu);
                        $("#r_xuetang_kongfu").append(displayVal(resp.data.labExamination.xuetang_kongfu,3.9,6.1));
                        //$("#r_xuetang_canhou").text(resp.data.labExamination.xuetang_canhou);
                        $("#r_xuetang_canhou").append(displayVal(resp.data.labExamination.xuetang_canhou,3.9,7.8));
                        //$("#r_xuetang_thxhdb").text(resp.data.labExamination.xuetang_thxhdb);
                        $("#r_xuetang_thxhdb").append(displayVal(resp.data.labExamination.xuetang_thxhdb,4,6));
                        //$("#r_xuezhi_ganyousanzhi").text(resp.data.labExamination.xuezhi_ganyousanzhi);
                        $("#r_xuezhi_ganyousanzhi").append(displayVal(resp.data.labExamination.xuezhi_ganyousanzhi,0.56,1.7));
                        //$("#r_xuezhi_danguchun").text(resp.data.labExamination.xuezhi_danguchun);
                        $("#r_xuezhi_danguchun").append(displayVal(resp.data.labExamination.xuezhi_danguchun,0.01,5.2));
                        //$("#r_xuezhi_dimidu").text(resp.data.labExamination.xuezhi_dimidu);
                        $("#r_xuezhi_dimidu").append(displayVal(resp.data.labExamination.xuezhi_dimidu,0.01,3.12));
                        //$("#r_xuezhi_gaomidu").text(resp.data.labExamination.xuezhi_gaomidu);
                        $("#r_xuezhi_gaomidu").append(displayVal(resp.data.labExamination.xuezhi_gaomidu,1.03,2.07));
                        //$("#r_shiyanshi_hcy").text(resp.data.labExamination.shiyanshi_hcy);
                        $("#r_shiyanshi_hcy").append(displayVal(resp.data.labExamination.shiyanshi_hcy,5,15));
                        var tnb_ = "";
                        if (resp.data.pastMedicalHistory) {
                            tnb_ = resp.data.pastMedicalHistory.tnb
                        }
                        var xuetang = resp.data.labExamination.xuetang_kongfu;
                        var xuetang_thxhdb = resp.data.labExamination.xuetang_thxhdb;
                        var xt_result = "";
                        if (xuetang > 6.1 && tnb_ == "有" && xuetang_thxhdb > 6) {
                            xt_result = reportMap["糖尿病"]["4"]
                        } else if (xuetang > 6.1) {
                            xt_result = reportMap["糖尿病"]["1"]
                        } else if (xuetang >= 3.9 && xuetang <= 6.1 && tnb_ == "有") {
                            xt_result = reportMap["糖尿病"]["2"]
                        } else if (6 < xuetang_thxhdb) {
                            xt_result = reportMap["糖尿病"]["3"]
                        }
                        if (xt_result != "") {
                            xt_result = xt_result.replace(/XT/, xuetang).replace(/XHDB/, xuetang_thxhdb);
                            $("#tangniaobing_").html(xt_result);
                            $("#tangniaobing").show();
                        }
                        //暂不知道 血糖和糖化血糖蛋白的关系是否并行
                        var xuezhi_result = '';

                        let gxzTmp = gxzCheck(resp.data.labExamination);
                        if (gxzTmp != "0") {
                            xuezhi_result = reportMap["高血脂症"][gxzTmp];
                        }
                        if (xuezhi_result != "") {
                            $("#xuezhi_").html(xuezhi_result);
                            $("#xuezhi").show();
                        }
                        //
                        var shiyanshi_hcy = resp.data.labExamination.shiyanshi_hcy;
                        var hcy_result = '';
                        if (shiyanshi_hcy && shiyanshi_hcy != "") {
                            if (parseFloat(shiyanshi_hcy) > 15.0) {
                                hcy_result = reportMap["同型半胱氨酸"]["1"]
                            }
                        }
                        if (hcy_result != "") {
                            $("#hcy_result_").html(hcy_result);
                            $("#hcy_result").show();
                        }
                    }
                    if (resp.data.ecg) {
                        $("#r_ecg").text(resp.data.ecg.ecgResult);
                    }
                    if (resp.data.ccRiskRating) {
                        $("#r_RiskLevel").text(resp.data.ccRiskRating.risk_level);
                        var risk = "";
                        if (resp.data.ccRiskRating.fengxianpingji_gaoxueya == "有") {
                            risk += "高血压；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_xzyc == "是") {
                            risk += "血脂异常；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_tnb == "有") {
                            risk += "糖尿病；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_fc == "有") {
                            risk += "房颤或瓣膜性心脏病；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_xiyan == "有") {
                            risk += "吸烟史；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_chaozhong == "是") {
                            risk += "明显超重或肥胖；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_yundong == "是") {
                            risk += "运动缺乏；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_naocuzhong_family_history == "有") {
                            risk += "脑卒中家族史；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_naocuzhong_history == "有") {
                            risk += "既往脑卒中；"
                        }
                        if (resp.data.ccRiskRating.fengxianpingji_TIA_history == "有") {
                            risk += "既往短暂性脑缺血发作(TIA)；"
                        }
                        if (resp.data.livingStatus) {
                            if (resp.data.livingStatus.isSmoking == "是") {
                                risk += "饮酒；"
                            }
                        }
                        if (risk == "") {
                            risk = "无";
                        }
                        $("#r_risk").text(risk)
                    }
                    if (resp.data.CVUS) {
                        $("#r_cvus_is_zhengchang").text(resp.data.CVUS.cvus_is_zhengchang);
                        //内膜IMT
                        if (resp.data.CVUS.neimo_IMT_houdu != undefined && resp.data.CVUS.neimo_IMT_houdu != "") {
                            $("#r_neimo_IMT_houdu").text("是/" + resp.data.CVUS.neimo_IMT_houdu + "mm");
                        }
                        //斑块数量
                        $("#r_bankuai_shuliang").text(resp.data.CVUS.bankuai_shuliang);
                        //斑块形态
                        $("#r_bankuai_xingtai").text(bkXtCheck(resp.data.CVUS));
                        //斑块溃疡
                        $("#r_bankuai_kuiyang").text(bkKyCheck(resp.data.CVUS));
                        //斑块回声
                        $("#r_bankuai_huisheng").text(bkHsCheck(resp.data.CVUS));

                        //狭窄率
                        $("#r_xiazhai_xiazhailv").text(xzlCheck(resp.data.CVUS));
                        /*if (resp.data.CVUS.xiazhai_xiazhailv_left_jingzong == "1") {
                            $("#r_xiazhai_xiazhailv").text("1-49%");
                        } else if (resp.data.CVUS.xiazhai_xiazhailv_left_jingzong == "2") {
                            $("#r_xiazhai_xiazhailv").text("50-69%");
                        } else if (resp.data.CVUS.xiazhai_xiazhailv_left_jingzong == "3") {
                            $("#r_xiazhai_xiazhailv").text("70-99%");
                        } else if (resp.data.CVUS.xiazhai_xiazhailv_left_jingzong == "4") {
                            $("#r_xiazhai_xiazhailv").text("闭塞");
                        } else if (resp.data.CVUS.xiazhai_xiazhailv_left_jingzong == "0") {
                            $("#r_xiazhai_xiazhailv").text("无");
                        }*/

                        var cvus_is_zhengchang = resp.data.CVUS.cvus_is_zhengchang
                        var cvus_result = '';
                        if (cvus_is_zhengchang == "任一部位有异常") {
                            cvus_result = reportMap["颈动脉斑块"]["1"]
                        }
                        if (cvus_result != "") {
                            $("#CVUS_").html(cvus_result);
                            $("#CVUS").show();
                        }
                    } else {
                        $("#div_is_zhengchang").hide();
                        $("#div_neimo").hide();
                        $("#div_bankuai_shuliang").hide();
                        $("#div_bankuai_xingtai").hide();
                        $("#div_bankuai_kuiyang").hide();
                        $("#div_bankuai_huisheng").hide();
                        $("#div_xzl").hide();
                    }
                    $("#_2").show();
                    $("#_3").show();
                    $("#jiankangzhidao").show();
                    $("#yishengzhidao").show();
                }, 'json');
            }
            //----------------------------------------更新
        });


        function displayVal(val, min, max) {
            let html = $("<span>" + val + "</span>");
            let shang = $("<span style='size: 18px;'>&nbsp;↑</span>");
            let xia = $("<span style='size: 18px;'>&nbsp;↓</span>");
            let v;
            if (val != "") {
                v = parseFloat(val);
                if (v < min || v > max) {
                    html.addClass('yichang');
                    if (v < min) {
                        html.append(xia);
                    } else if (v > max) {
                        html.append(shang);
                    }
                }
            }
            return html;
        }
    </script>
    </body>
    </html>
{{end}}